package com.example.schedule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.schedule.entity.TaskinfoLogs;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itheima
 */
@Mapper
public interface TaskinfoLogsMapper extends BaseMapper<TaskinfoLogs> {
    @Select("select * from taskinfo_logs where task_id = #{taskId}")
    TaskinfoLogs selectById(long taskId);

    @Update("update taskinfo_logs set status =#{status} where task_id = #{taskId}")
    int updateById(TaskinfoLogs taskinfoLogs);
}
